package cn.rxyb.core.random.enums;

/**
 * @author YJH
 * @version 1.0
 * @description 整型数量控制
 * @date 2020/6/27 11:52
 */
public enum IntegerEnum {
    I0_9(0, 0, 9),
    I10_99(0, 10, 99),
    I100_999(0, 100, 999),
    I1000_9999(0, 1000, 9999),
    I10000_99999(0, 10000, 99999),
    I100000_999999(0, 100000, 999999),
    I1000000_9999999(0, 1000000, 9999999),
    I10000000_99999999(0, 10000000, 99999999),
    ;

    /*索引*/
    private int index;

    /*最小数*/
    private int min;

    /*最大数*/
    private int max;

    IntegerEnum(int index, int min, int max) {
        this.index = index;
        this.min = min;
        this.max = max;
    }

    public int getIndex() {
        return index;
    }

    public int getMin() {
        return min;
    }

    public int getMax() {
        return max;
    }
}

